<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.4.1.min.js"></script>
</head>
<body>
<a href="http://localhost:8080/get"></a>
<button type="button" onclick="getData()">get</button>
<script>
    function getData(){
        $.ajax({
            url:'http://localhost:8080/get',
            success:function(result){
                console.info(result)
            }
        })
    }
</script>
</body>
</html>